function optionchart(dat){
	var serias_data = [];
	for ( i = 0 ; i < dat.linename.length ; i++ ) {
		var v = {name: dat.linename[i], type: 'line',  data: []	}
		serias_data.push(v);
	}
	
	optionI = {
// 		title: {
// 			text: dat.title,
// 			subtext: dat.sub_title
// 		},
		tooltip: {
			trigger: 'axis'
		},
		legend: {
			top:0,
			padding: [0, 0,0,5],
			left:2,
			data: dat.linename
		},
		toolbox: {
			show: true,
			feature: {
				mark: {
					show: true
				},
				dataView: {
					show: true,
					readOnly: false
				},
				magicType: {
					show: true,
					type: ['line', 'bar']
				},
				restore: {
					show: true
				},
				saveAsImage: {
					show: true
				}
			}
		},
		calculable: true,
		xAxis: [{
			type: 'category',
			boundaryGap: false,
			data: []
		}],
		yAxis: [{
			type: 'value',
			axisLabel: {}
		}],
		series:serias_data
	};
	return optionI;
}
